package com.hospital.demo.service.impl.jiajinpeng;

import com.hospital.demo.mapper.jiajinpeng.SurgeryMapper;
import com.hospital.demo.model.jiajinpeng.Surgery;
import com.hospital.demo.service.jiajinpeng.SurgerySer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SurgeryImpl implements SurgerySer {

    @Autowired
    private SurgeryMapper surgeryMapper;

    @Override
    public List<Surgery> selectAll1() {
        return surgeryMapper.selectAll();
    }

    @Override
    public List<Surgery> selectBydoctor1(String sdoctor) {
        return surgeryMapper.selectBydoctor(sdoctor);
    }

    @Override
    public int insertSurgery1(Surgery surgery) {
        return surgeryMapper.insertSurgery(surgery);
    }

    @Override
    public int updateSurgery1(Surgery surgery) {
        return surgeryMapper.updateSurgery(surgery);
    }
}
